|
button4 2.2.1
|
API for configuring and manipulating Button 4 Click driver. More...
Topics | |
| Button 4 Settings | |
| Settings of Button 4 Click driver. | |
| Button 4 MikroBUS Map | |
| MikroBUS pin mapping of Button 4 Click driver. | |
Functions | |
| void | button4_cfg_setup (button4_cfg_t *cfg) |
| Button 4 configuration object setup function. | |
| err_t | button4_init (button4_t *ctx, button4_cfg_t *cfg) |
| Button 4 initialization function. | |
| uint8_t | button4_get_out_pin (button4_t *ctx) |
| Button 4 get out pin function. | |
API for configuring and manipulating Button 4 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
| void button4_cfg_setup | ( | button4_cfg_t * | cfg | ) |
Button 4 configuration object setup function.
This function initializes Click configuration structure to initial values.
| [out] | cfg | : Click configuration structure. See button4_cfg_t object definition for detailed explanation. |
| uint8_t button4_get_out_pin | ( | button4_t * | ctx | ) |
Button 4 get out pin function.
This function returns the OUT pin logic state.
| [in] | ctx | : Click context object. See button4_t object definition for detailed explanation. |
0 - Button active, 1 - Button reset. | err_t button4_init | ( | button4_t * | ctx, |
| button4_cfg_t * | cfg ) |
Button 4 initialization function.
This function initializes all necessary pins and peripherals used for this Click board.
| [out] | ctx | : Click context object. See button4_t object definition for detailed explanation. |
| [in] | cfg | : Click configuration structure. See button4_cfg_t object definition for detailed explanation. |
0 - Success, -1 - Error. See #err_t definition for detailed explanation.